var CryptoJS = require('crypto-js');
let key = 'secret key 123'

    function crypto_str(s) {
        let ciphertext = CryptoJS.AES.encrypt(s, key).toString();
        return ciphertext
    }